package com.base.engine.font;

import static org.lwjgl.opengl.GL11.* ; 

public final class MADFontRenderer {
 
	public static void renderText(float left, float top, String text, MADUnicodeFont font){
		glPushMatrix();
			glDisable(GL_DEPTH_TEST);
			glEnable(GL_TEXTURE_2D); 
			glEnable(GL_BLEND);
			glDisable(GL_LIGHT1);
			font.drawString(left, top, text, font.getColor());
			glEnable(GL_LIGHT1);
			glEnable(GL_DEPTH_TEST);
			glDisable(GL_TEXTURE_2D);
			glDisable(GL_BLEND);
		glPopMatrix();
	}
	
}
